<%@ Control Language="C#" AutoEventWireup="true" CodeFile="loginpanel.ascx.cs" Inherits="forums_controls_login_loginpanel" %>
<asp:Panel runat="server" ID="pnlLogin"
    CssClass="login_panel"
    DefaultButton="btnLogin">
    <asp:MultiView runat="server" ID="mviewLogin" ActiveViewIndex="0">
        <asp:View runat="server" ID="viewAnonymous">
            <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr class="forum_navbar_top">
                    <td colspan="4">
                        <table width="100%" border="0" cellpadding="3" cellspacing="0">
                            <tr style="border-collapse : collapse;">
                                <td class="forum_navbar_left">
                                    <asp:HyperLink runat="server" ID="HyperLink1"
                                        NavigateUrl="~/forums/default.aspx"
                                        Text="Awesome Forums" />
                                </td>
                                <td class="forum_navbar_right">
                                    <asp:panel runat="server" ID="pnlInvalidLogin">
                                        Incorrect username or password.
                                    </asp:panel>
                                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                Username:
                                            </td>
                                            <td width="100%">
                                                <asp:TextBox runat="server" ID="txtUsername"
                                                    CssClass="forum_navbar_textbox"
                                                    />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Password:
                                            </td>
                                            <td width="100%">
                                                <asp:TextBox runat="server" ID="txtPassword"
                                                    TextMode="Password"
                                                    CssClass="forum_navbar_textbox"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" align="right">
                                                <asp:Button runat="server" ID="btnLogin"
                                                    CssClass="forum_navbar_button"
                                                    Text="Login"
                                                    OnClick="btnLogin_Click"
                                                    ValidationGroup="Login" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr class="forum_navbar">
                    <td class="forum_navbar_item">
                        <asp:HyperLink runat="server" ID="lnkRegister"
                            NavigateUrl="~/forums/register.aspx"
                            Text="Register A New Account" />
                    </td>
                    <td class="forum_navbar_item">
                        <asp:HyperLink runat="server" ID="lnkSearch1"
                            Text="Search Forums"
                            NavigateUrl="~/forums/search.aspx"/>
                    </td>
                    <td class="forum_navbar_item">
                        <asp:HyperLink runat="Server" ID="lnkMembers1"
                            Text='Members'
                            NavigateUrl='~/forums/members.aspx'
                            CssClass="forum_navbar_link"/>
                    </td>
                    <td class="forum_navbar_item">
                        <asp:Hyperlink runat="server" ID="lnkHome1"
                            Text="Awesome Home"
                            NavigateUrl="~/default.aspx" />
                    </td>
                </tr>
            </table>
        </asp:View>
        <asp:View runat="server" ID="viewAuthenticated">
            <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr class="forum_navbar_top">
                    <td colspan="5">
                        <table width="100%" border="0" cellpadding="3" cellspacing="0">
                            <tr style="border-collapse : collapse;">
                                <td class="forum_navbar_left">
                                    <asp:HyperLink runat="server" ID="lnkHome"
                                        NavigateUrl="~/forums/default.aspx"
                                        Text="Awesome Forums" />
                                </td>
                                <td class="forum_navbar_right">
                                    <div>
                                        Welcome, <asp:Label runat="server" ID="lblUsername" Text="[Username]" />
                                    </div>
                                    <div>
                                        You last visited <b>Today</b>.
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr class="forum_navbar">
                    <td class="forum_navbar_item">
                        <asp:HyperLink runat="Server" ID="lnkUserCP"
                            Text='UserCP'
                            NavigateUrl='~/forums/usercp.aspx'
                            CssClass="forum_navbar_link"/>
                    </td>
                    <td class="forum_navbar_item">
                        <asp:HyperLink runat="Server" ID="lnkMembers2"
                            Text='Members'
                            NavigateUrl='~/forums/members.aspx'
                            CssClass="forum_navbar_link"/>
                    </td>
                    <!--
                    <td class="forum_navbar_item">
                        <asp:HyperLink runat="server" ID="lnkPhotos"
                            Text="My Photos"
                            NavigateUrl="~/forums/photos.aspx"
                            CssClass="forum_navbar_link"/>
                    </td>
                    -->
                    <td class="forum_navbar_item">
                        <asp:LinkButton runat="server" ID="lnkLogout"
                            Text="Logout"
                            OnClick="lnkLogout_Click"
                            CssClass="forum_navbar_link"/>
                    </td>
                    <td class="forum_navbar_item">
                        <asp:HyperLink runat="server" ID="lnkSearch2"
                            Text="Search Forums"
                            NavigateUrl="~/forums/search.aspx"
                            CssClass="forum_navbar_link"/>
                    </td>
                    <td class="forum_navbar_item">
                        <asp:Hyperlink runat="server" ID="lnkHome2"
                            Text="Awesome Home"
                            NavigateUrl="~/default.aspx"
                            CssClass="forum_navbar_link"/>
                    </td>
                </tr>            
            </table>
        </asp:View>
    </asp:MultiView></asp:Panel>
